package com.creditnet.bmc.common.service;

import com.creditnet.bmc.common.domain.DictDO;
import com.creditnet.bmc.platform.domain.UserDO;

import java.util.List;
import java.util.Map;

/**
 * Created by bjmaozhengwei on 2018/3/31.
 * 字典表
 */
public interface DictService {
    DictDO get(Long id);

    List<DictDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(DictDO dict);

    int update(DictDO dict);

    int remove(Long id);

    int batchRemove(Long[] ids);

    List<DictDO> listType();

    String getName(String type,String value);

    /**
     * 获取爱好列表
     * @return
     * @param userDO
     */
    List<DictDO> getHobbyList(UserDO userDO);

    /**
     * 获取性别列表
     * @return
     */
    List<DictDO> getSexList();

    /**
     * 根据type获取数据
     * @param type
     * @return
     */
    List<DictDO> listByType(String type);
}
